def get_all_database_accessions(chebi_ids):
    '''Returns all database accessions'''
    all_database_accessions = [get_database_accessions(chebi_id)
                               for chebi_id in chebi_ids]
    return [x for sublist in all_database_accessions for x in sublist]