update get_user_purchases with limit and offset parameter set as array to be more flexible. added check on remove "limit" condition if limit = -1