final DBIFactory factory = new DBIFactory();
final DBI jdbi = factory.build(environment, config.getDatabaseConfiguration(), "postgresql");
final ToppingDAO dao = jdbi.onDemand(ToppingDAO.class);
final PizzaDAO pizza_dao = jdbi.onDemand(PizzaDAO.class);
environment.addResource(new ToppingResource(dao));
environment.addResource(new PizzaResource(pizza_dao));
}