returning the cursor instead of fetchall
BBB: providing support for mongo style queries