modified for supported CC_USE_SQLITE