title: How to access room database in service
body: <p>I am having problem with observing LiveData and querying data from Room Database in a foreground service class. This service run in the background and perform various database operations.</p>
  
  <p>Observing LiveData seems possible by using <code>observeForever</code> and 
  querying can be done by accessing repository class (bypassing ViewModel) but it seems like a hack, not a standard way.</p>