fixed problems with the mongodb+nodejs flavour of the app

Dan,

Minor changes that made the mongodb version work correctly for me on my setup on ubuntu. 

Bug fixes for:
1. Total records is displayed as null.
2. Missing images.

Adil.