Added template code blocks. Moved 'mysql:' out of attributes. Updated attribute locations in template files