added ffs db analysis routines, dbload and ghostcounter adjusted