Added schema to access module.

Added a function and some triggers for testing.