Restore NO Sync Patch for every row, only when finish adding.
SQLite: Enable fdatasync for SQLite

SQLite library recommends usage of fdatasync when available.
Since it is available for linux, enable it. This gives better
performance compared to fsync.

Change-Id: I47d5fb9cb1e8331729b54d77f10f7499e028269d