database save
indicator_generator and DB REDESIGN, no bacward compatibility. Contains wrong code