rename fragment files
correctly clean up database resource
minor refactoring in TabsAdapter