add postgres db
update process json to DB