working on mapping data-ids and ids from model/database