Habits DB connection iterations