added indices to foreign keys
refactored cart confirm controller to use a scope
added indices and refactored per 9/10 code review

updated search by query scope

moved find carts logic into a model scope and updated building of carts to use a model method

refactored per code review 9/10
Merge pull request #28 from markmccanna1/add_indices

Added indices and refactored code