fix mysql-postgresql detection