Backbone repository pattern