fixed bug where the SQLiteDatabase object may not be initialized
minor comment update
set edit activity to return to main activity on success