Fix connecting to the mysql db