Return if there are no rows to save
update dependencies