Make sure date taken time is set

computeTakenTime() depends on the value DATE_MODIFED,
so call it after DATE_MODIFIED are set to ensure it
works correctly.

Change-Id: Ib4f3b03c487b45dd081dab5bd4ddfa72221b434f
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.

Signed-off-by: jangwon.lee <jangwon.lee@lge.com>

Change-Id: I7b4e3cf71d0b285399794ee9b45791c6a112a00c