JSON to SQL translation layer