database insertion via json