Basic queue based mysql query processor