'Return the version of the db on disk (or None if cannot
determine).'

@property
def version(self):

    path = join(self.base_dir, 'VERSION')
    try:
        fin = open(path, 'r')
    except EnvironmentError as ex:
        return None
    try:
        return fin.read().strip()
    finally:
        fin.close()
