Fixed schema order, added in query for posts.