Changed main activity to constantly sync between web and db.
Fixed merge