added check for dbtype step 2