Fixed MySQL and Mono related bugs