Added templates, compact database, etc.