add sqlite saving events