1. Fixed bugs in ID system;
2. Refactored SQLHelper.