Force ActiveRecord connection establishment with config/database.yml

This is necessary so that SSL settings are correctly used. By default,
Rails does not handle query parameters in the DATABASE_URL, while the
config/database.yml generated by buildpacks does.
Simplify database check script
Use APP_NAME everywhere
Use APP_NAME everywhere, and handle ssl connection in backup script.

Conflicts:

	packaging/scripts/backup
Modify create-svn-repositories so that APP_NAME can be overwritten more
easily.
Use APP_NAME everywhere in postinstall
Can now switch package names and everything will work
Fix path in clear old sessions cron