Establish a SQL connection.