added some sql logic
gitignore