new schema.sql with many functions and triggers. tests pass.