found out that 'tmp' database is also used when repairing/upgrading