WIP: fix the mysql connection