changed to JSON table schema