Changing dbManager logic and adding logger