ignore .db files, fixed self-ref in template import