I agree that there should be no DB sepcific logic whenever possible.
I just wondered that you removed db_is_oracle but not db_is_pgsql, db_is_mysql and db_is_mssql.