finish CRUD database