replaced db with juggling