Added ability for dynamic relative paths for the templates and database