update databaseObject

add delete function