changed searchById() to find() and added hash map constuctor to purchase model