Flag direct database queries and database schema changes

Closes #70 and #69