inserted ifdef HAVE_SQLITE to allow compilation with with-sqlite=no