Added facility to specify db/collection; minor changes to samples
Updated samples