Delete old comments
Add method to handle opening and closing the database
Use databaseapi method to get data from database
Refact: OnFragmentChange -> OnPageChange
Move call to listener (onPageSelected -> onTabSelected)
Add call to listener when leaving a page