Added type attribute to link DB element, to distinguish between note links and url links on the client side.