SQL script and tips.