Only run ensureindex on a database if we haven't already