You cant upgrade to 2019 using just the database. I assume you mean Exch 2013 or Exch 2010 is what you are running now?
If the database is in a clean shutdown state, you can recover the server running the same Exch Version and CU and same Windows O/S and drop the database in same drive structure and it should work:
https://learn.microsoft.com/en-us/exchange/recover-an-exchange-server-exchange-2013-help
Or you can use database portability and mount on another server running the same version of Exchange:
https://learn.microsoft.com/en-us/exchange/database-portability-exchange-2013-help
Or purchase 3rd party software to recover.
Once recovered, then you can upgrade.