add db cache and sql file