Pretending that SQLite has Stored Procedures and Functions