add old schema to migration
Remove distinct from query.  Sqlite has no support
SSLCA: fixed appending chain certs
bcfg2-profile-templates.py: various improvements