fix parameter mixup and array copying errors
encapsulate tricky array manipulations for readability
uncouple the Handler from Activities

the Handler could be used by non-Activity classes
wiper: support secret key wiping
sqlcipher support

we provide a subclass of SQLiteOpenHelper that manages the key