[#104] Fix for Infinite loop on start-up with sharding enabled

Simple fix for ticket 104 to work around change to sharding init. Tested on postgres 9.1 but it looks like the fix will solve the same issue with the other db_adapters.