Edit database