Moved the index creation into a new logging_indexes.sql script.