changes to dbAdapter