refactored path for dbengine, refactore daemon to support logging