Edit database fix