Setting database config defaults and session encryption key.