Fix RDBMS detection