Handlers and database