Business logic does not (usually) belong in the database

When to use stored procedures or complex queries, and when to keep logic in your application server