MySQL Stored Procedures: How to write highly effective stored procedures that will enhance productivity, security and application logic independence