convert to json when populating database, cat together on getposts