The Database

The database isn't simply a dumb data storage mechanism. It is the authoritative source of application information and, perhaps more importantly, the enforcer of the rules of the application (and business). The user interface will always be driven by the database, not vice versa. That's not to say that the application cannot provide some means of protection for the database, but the database shall be the final arbiter of what is and isn't permitted.