combine getAllRows and getUserRows into one function.

getAllRows now takes 3 arguments: table, user, and callback.
If you want to get rows without a user, then pass null for an argument.