Save JSON element to database