Queries and knowledge you need when running MySQL procedures