All mysql functions in deamon isolated to functions in db.py modual