re-writing the gff_db program