mysql exceptions clean up
postgresql exceptions clean up