• My mistake.

    Get database id from from sys.sysdatabases and pass that as first parameter.