added a sql connection class