def metadata_path(packagename):
    """ Get the db path to metadata for a packagename. """
    path = 'projects/{0}/metadata'
    sanitizedpackagename = ''.join(packagename.split('.'))
    return path.format(sanitizedpackagename)
