check in template db