models and cruds working properly, with relationship