add script to insert json data into postgresql