Very slow database performance

From what I can tell - the bottle neck seems to come from the serialization - i.e. actually sending the table rows to the client.

for a helper function for timing your client side and server side functions this might be useful