remove sql exceptions