Implemented database CRUD