[+] fetch posts from db

added template support