Database, main page, and individual post pages working