Added the CRUD operations for database.