Guarantee that db, shm and wal files are deleted together.

If media provider failed to open the database during an upgrade,
it deletes the database file and tries again.
But when deleing the file, it doesn't delete wal and shm files.
This commit is to guarantee that
all related files (db, wal, shm) are deleted together.

Change-Id: Ib55ec5c873a41b9674f33289a267e904d5d52ebe