If you´ve forgotten your PIN or PUK, you can delete and recreate your database account. After that, you´ll have 3 new tries.
Close the dialog for the PUK entering. Click on the „edit database symbol“ in the Password Safe login window. With this button you´ll open the database accounts properties. At the bottom you´ll find a button to delete the database account. With that you can delete the connection to the database. The database itself will not be deleted. After that you can reconfigure the database account by „create ne database“. Here you must choose „existing database“ and select your database file.