took out gauge code
fixed red button not being red
took out successful consoles
added field in db to sort table by
implemented total sorting in js