refactored into separate packages
removed wedb.go