Fix mistake + add interface on metadataDAOFactory