fixed console log of entire database