I suggest to replace DATABASEPROPERTY with DATABASEPROPERTYEX, as a recommendation by microsoft:
This feature will be removed in the next version of Microsoft SQL Server. Do not use this feature in new development work, and modify applications that currently use this feature as soon as possible. Use DATABASEPROPERTYEX instead.
(taken from BOL)
Note: just Search/replace won't work, parameters / output is changed ...
WilfredThe best things in life are the simple things