fixed some bugs in the MySQL section