1. Intialise database in the constructor of RepositoryViewModel
2. Unit test