Who does the work?
Application: complexity, security, uniqueness, formatting, expense
Database: all the rest
Notes on timestamps
Application vs the database vs the browser
Who does the work?
Do not underestimate the database (and cheat when needed)
Reduce the application code, let it worry about interfacing with the user
Make generic database code, let it worry about interfacing with the data