You create an IR-based component in MyDatabase and add 'functions' to this component and use the IR code data above for the functions.
Then, you add the 'component' to your project via Building Blocks and then drag and drop the functions onto buttons you create in your user interface (UI).