Sqlite compatibility

Bug: 65896
Change-Id: I98366c3e8ff8615bb7462c594ca1a8b97ba5a42b