refactoring sequel model