Added a separate field for function definitions in parser.

This is made in organizational purposes. We don't have a factory,
but a list of function definitions seems like the most
efficient and organized way to parse queries with functions.