Fixed #563: Errors in SQL syntax when verifying catalog