Edit DataBase function