sql_connect function

Connect to a SQL database