done with implementing database