reorganizing mysql connections to prevent mysql pipe errs
fixed tabbing, and now using logger to log stuff
fixed indentation, ignored log file
Merge branch 'master' into mysql