it might be an idea to create a conditions table of the format
(id, cond-type, val1, val2) with id as primary key and (cond-type, val1, val2) as secondary key.
actually this is currently done internally in mangos (conditions are mapped to one condition id)
advantages:
* faster to load
* less space in the database
* easier to expand other systems with conditions, as a condition is only one collumn then and not three
disadvantages:
* way harder to read, because every condition requires an additional SELECT to the conditions table.
* Also harder to port database content with conditions between different db projects (though could be possible to unify to one conditions table (agreement of ids)..)
Now about the idea of conditions and db-scripts.
At first this would require some serious rework of the condition system, because the condition system currently works only with players - for db scripting this must be extended to also work on worldobjects.
Then ofc many conditions make no sense for db-scripting, only some special conditions like world-state values (or sd2-instance return values, which is a "bad" condition)