--fixed extra spaces at the end of several files causing header freak out
--fixed connection with mysql database
--added some MySQL query suppor: