The database should automatically recover to the last committed transaction when it is reopened. No action is necessary on your part. However, uncommitted changes are lost. There is nothing that can be done about that, as some or all of the uncommitted changes would have been in memory when the application crashed.