added  UserDBManager which chooses the DBType by reading the preferences
+ some refactoring