Further work on making sqlite bridge work, but still incomplete.