Integrated code updateCollectionStats code (previously a Stored Procedure)
Merge pull request #63 from egbot/master

Integrated updateCollectionStats code (previously a stored procedure)