Remove sql exception