added table to locations page, added form, fixed db data errors