updating mySQL code and updating code to run on linux.