We don't move all logic into the database. Presentation logic, for example, is certainly not there. Also there are things like sales tax which cannot reasonably be put there.
The thing though is that one can always get a consultant to do sales tax logic. The big thing is if you know SQL and HTML the rest can come easily enough.
EDIT: login -> logic