edit db code