Took out mysqli_close

Took out the mysqli_close, added in a function to free up the results
from queries.
Also made a few css and formatting updates