Add template gallery for posts
new sql