Working on DatabaseDialog