Add alert model and database CRUD.