fixed annoying bugs
fixed mysql calls to include proper host and credentials