Fixed Group Table entrie modules, Modified db.py for fail over process.
Fixed Group Table entrie modules, Modified db.py for fail over process.