Stop D365 & IIS
Stop SQL server as well. Otherwise you'll not be able to overwrite the database.
Let me know and will be happy to help
If you've found this thread useful, dive deeper into User Group community content by role