dbconnection and dbcursor classes implemented