adding a query to database to submit a blog post