finished the dbconnection class