completed writing entries to db