Add some better errors for database problems