catch all errors when dealing with database