This is my attempt at creating json from an sqlite program