changed locationtable to locations (table name)   1909