added some sql scripts to analyze database