changed database to handle results better, in the middle of setting up the form to save to the database