MySQL Database Development: Working with Functions