Added adaptive scale factor to db.