Almost completed U4-5847 Ensure the path is set correctly for templates in the db but needs a db migration script as well, more unit tests