fixing submit do for db