Optimize sqlite db

Disabled the "shm" sqlite db file which is a shared-memory file for multi-threading applications.