"[UI] is an interface between a human and a database. You can't have an interface unless you can connect to both things."
from an interview with Ryan Singer.
via. The Web Practitioner's Blog
If you have a beautifully connecting program to a database but your UI is ugly, then you don't have a program, but garbage.