started work on dbAdapter