Fixed IS NULL implementation, added argument to exec() for print the SQL instead of execute it.