Updated all queries and system is functional

Added some style using the Twitter Bootstrap Framework as well. Fixed
all MySQL queries so that they work.