rm old files. rm db.js and use json. use Ti.App instead of window