fix sqlite journaling mode for iOS7 and Mavericks