Fixed a issue where the links dao was being used even though it was
removed.