Fixed a broken database call
Changed some cli outputs to logger