Added create on edit for refdb