Rename the User Profile
service application databases in SharePoint Server 2013
You can rename a User Profile service application database by using SQL Server tools.
Please check the below Article from MS.
I hope the above information will help you to resolve the issue, in case of any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues, Thank you.