Corrected the Database.equals() method to account for comparisons to legacy database types, which is apparently done by the XPages API in .isCurrentDatabase