add sqlite db and message mode;