Added complete database + communication logic and beginning of Syncservice