Add a module for common provider class factories.
Commit database when ending sessions.