updating database and template changes.