added a scanner to work with all tables, trying to find out what the KeyValue class can really do