json decoding added to db.