moved model to app module, implemented custom backend