Switched from user to related_model

Reworked backend to not use code in __init__.py, refactored to use
related_model,