Take first '-d' flag as path to entries database.
Remove DataDir constant.