Below you will see how to relicense your database when it is giving you a license is invalid message.
This has to be done on machine that hosts the database.
First, you will want to go into the database manager, you can find that by typing in "Database Manager" in the start menu of your computer.
Second, click on connect and make sure that the server name is the correct one you normally connect to. You will see the username SA (System Administrator) if the password field is not filled in, you will put in your SA password. If you do not know your SA password, you can connect to the Database Manager via Windows Authentication option.
Third, once connected to the Database Manager, go to the Advanced tab and click on Reset DB Info and click yes.
Then you will want to open up your CRM.
Once opening CRM it will tell you that you do not have a valid license key, click on "Yes" and when the REALive window pops up, enter your credentials (account holder's e-mail and password)
Click on orange arrow and then it will tell you that your license is valid.
Once that is complete, you have successfully relicensed your database.