Refactored the Snaphoting logic to make it a bit cleaner
Fixed bug with specifying connection string and using snapshotting.