Added function support

Added functions to the includes dir, this then allows the call variables
from the database