sql_read function

Read a table from a SQL database