Fixed bug where Tables did not save their Database pointer, which was causing a crash in unit selection code.