added a query to insert to likedPosts when inserting a post, but it's giving an error now