get all tables as a cursor