Use of bacteria to recycle waste gases