fixed onPause bug
creating & destroying db correctly