Almost in all stages of my application, the database inserts / updates / deletions are done by the application code (in my case, PHP).However, in some situations, I am using MySQL triggers to do some calculations and changes to the tables.Is this a recommended approach? Or is there any best practice rule that only the application should do all the work and not the database?Thanks for any recommendation.