Modify MainActivity to support reading from the database