fix pagination numbers
convert API to use search & sort
change indices to bill_id instead of doc_id