Update sqlite and PLDatabase

This not only updates sqlite to the latest version, but also adds several more subspecs for useful compile-time options. PLDatabase is updated accordingly.