Database, handle json data, update model