creates module for database