fix a bug in databases.py to connect mysql