exit app on double press on back, allow to launch rom updates directly

Change-Id: Ide7229ba6607c1b456edfec18c01c3f69d6e232b
Add database helper, preference helper, add general preferences

Change-Id: Ib0e4366bd30ebbdb1287a33b4483d2c18009598f