Add some better errors for database problems
Merge pull request #42 from dionyziz/db_errors

Add some better errors for database problems