make loading metadata work for geometry tables and non-geometry tables