updated db adapter