updated dbInit with version detection to use createIndex instead of defunct ensureIndex. also added log entries on index creation.