Added .db files to git ignore.
Improved js and python communication.