better sqlite support (missing tests)