clean up and mysql settings