add a timeout to the mysql command