added configs for test db and daemon freeze, fixed many bugs with dis refresh timing