Fix issue with populate_db. Problem with parse_post function. Does not correctly pass json file due to wrong position of append statement