fixed json query, added info to table