Fixes issue with admin service
 If index was previously created and CreateDatabase is run a second
 time with different settings for expiry, then index creation fails