finally data.close() added, static database accessable from all activities, fix Spinnervalue write database