Fixed database leak bug

Added onDestroy method to Abstract and Favorite Abstract class