put data to db from JSON string.