Moved graph template file into a proper sql file and loads by executing script