Schedule database work