Add configuration parameters and code for separate django database

Before django and owncloud had to be installed in the very same database which is some very unlikely usecase.
Add database connection signleton