Added CRUD support for database.