Perl + SQLite template engine