Added database bean Preferences.java