fix name typo vs the real schema
fix another typo with content
refactor type of repository so we can do pagination.