fix lowercase db name and missing comma
emit nil instead whole document and use document instead of value for loop
add gitignore
add sample xcode 6 beta 4 project