Edit db