Added buffer to reads inserts to database