regenerate cache db