[server][DBAgent] Move fixupIndexes() from DBAgentSQLite3 to the base class: DBAgent so that it can be used from other subclasses.