better print and update db