C++ myql fifo loader