optimized slightly with addition of map() functions and enumerate()
updating branch
added getjson function and git ignore
simplified getjson function
updated postdb