Changed db config to match production
Update to match better db config handling
throw error on errors