QueryBuilder now closes connections