define interface for findOne and findAll