Added salt parameter to be compatible with multi master
Adding option to use database backend for repository
Fix template, forgot to parameterize one of the persistencemanagers