Use moment for better postgres timestamp strings

This patch fixes a bug where milliseconds <100 on timestamps were not being correctly zero-padded. For example, March 1, 2013 3:20 p.m. and 53 milliseconds was being stringified as "2013-03-01 15:20:00.53" rather than "2013-03-01 15:20:00.053"