updating with data added to the db. may need to revert back to prototyping until all the major functionality is built. but commiting this to I have code to review when storing actual data.