Fix #1, Fix #2:
* the application uses Dancer::Plugin::Database;
* database related duplicate code has been removed.