The CQ database schema is being versioned in map-knowledge (see AnatomicMaps/map-knowledge#71).
The flatmap-server should define a schema version constant in competency_query.py so it can detect when the database schema is outdated and warn that an upgrade is required, rather than failing with missing table errors.