Working on saving records in db and rendering