fixed logger stuff
added 'db'