add module for models without database link
refactor