creating the dbconnector