CoreData, db.js, addEntry.js

Implementing logic for synching.
Logic works, now need to implment check when app opens and store date
when app closes.