sites: add support for a template database