Use scoped sessions instead of explicit sessions