Add hooks for database open and pragma handling

Change-Id: I0c1843a1c17e6cb7786ea5c66d229282b1fa0d32
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: I2ff2c66918e90042ddc838739ebdd91c81df6a3b
SQLite: Updated hooks for database open and close.

Change-Id: I38135eaed3b5e66ef302eb0337f1bf3ba9f184d7
Merge branch 'jb_2.6_rb1.10' of git://codeaurora.org/quic/la/platform/external/sqlite into android-4.4
Add optimized function libs