persistent template added
minor changes
postgres added