Raise error on mult statements and finalize stmts.

Some statements were not properly finalized before errors were raised and error
is now raised on multiple statements instead of just a warning.
Neaten up single line functions.
Test each major functionality.

Fix major issues with binding text and blobs.
Retrieve BLOBs as BLOBs not TEXT.