querying the database to submit a blog post