move from SQLDB to json