changes to db adapter