Updated PhP files to use new schema, added javascript to switch between Masters and PhD tables.