actually set the instance in db