Added both database and DBI dialect directives (so constraints work, for instance).