database viewmodel