Don't call database on undefined primary key in get method.