Assert on wrong sql syntax.

Need to assert if the sql syntax is wrong, because if it is, no
return value will be correct if we already have a return value.

Maybe I should return an enum with Error, True or False. But it will
work for now with an assert.