Added util function do_backup for backing up sqlite db.