dbtype detection fixed (#124)