Adds db queries for post, posts, and series routes