sleep hooked up to db, all calculations are in effect