Fix the config

Add check for config[env] (since ENV=test was causing an error), move prod db to production config.