make database exceptions more verbose
made it clearer that the platform is in debug mode