Database query returns package so use it's id