Added edit database functions