RSpec matchers for database queries