check db path and copy to /dev/shm
copy devils.db to /var/tmp when exit