Add compatibility with old sqlite.