update db with log