Rewrite site to read blog posts from db