Fix callFunction using singleton.
Reformat recreate_schema.sql.