Minor refactor of the ReadArrayFromDatabaseFile