Update logger, to function inside Database class