Better error messages when db is un-configured