edit database class