add optional automatic dbms detection