Add some more SQL functions, and a stub for a SQL virtual table (not yet completed).