Database database = factory.build(configuration.getDatabase(), "todo");
final TodoDao dao = database.onDemand(TodoDao.class);
dao.createTableIfNotExists();
environment.addResource(new TodoResource(dao));
environment.addResource(new HtmlPageResource());
}