db and edit