Added /home and improved MySQL Query methods