mysql, os and other minor changes