Moved PID to mysql lib