Better DataBase exception handling