mysql work and work with timeouts