Configurable database host

Just what it says in the title – we needed the database host to be configurable.