Hacking enviromnet to stop database errors killing the app