modified db to store json data, rather than attributes