added useful gitignore and upsert query