Add functions.php to fix sqlite3 test error