Try spatialite?