db and routes CRUD