changing importToTempDB method to accomodate waiting for the import to main db button which happens to be the cause of a lot of failures