support database URLs in config file

With this change the database.json can be much shorter. For example:

{
    "default": "development",

    "development": "sqlite3://app_debug.sqlite3",
    "test": "sqlite3://app_test.sqlite3",
    "production": "sqlite3://app.sqlite3"
}