querying database to submit a blog post