Added the encryption key to configurable environment variables. Also changed the DB config to use environment variables.