Try..catch in sql command parser