Regenerate script.db