Update db.py

allow to define db_host in config file (when MySQL server is not local)