Cooperative-threaded access to relational data