implemented db, working on creation