Changing model to work with id instead of secondary id