added API to fetch model by internal database id