1. Fixed memory issue in SQLHelper.
2. Fixed bug in activity editor.