Add logger
Fix bug with links from database path