Database modules for applications