Fix ScanTime such as it does not panic when column type affinity is wrong
Fix Tables/Views/Indexes methods because there is only TEMP database.