first part of fifo, init DB