Gemfile: move 'rake' from development to default group

Rake is now needed in production in order to run migrations, so not just
a development dependency anymore.
database: use [] instead of fetch on config

Hashr implements #fetch, but it's the implementation inherited from
Hash, so it doesn't really work and always returns the default value.
database: the connection string should use 'user' instead of 'username'