implemented db