Code changes to use medoo orm for my plugins ease of db use, added in a template function to load template files in a plugin's home folder