Upload component trouble


I`ve just started to use Dash and i met some trouble with Upload component:
Im trying to write data from excel/csv file to postgreSQL base. It works, but the file reads and writes twice.
How i can fix this problem?
(Screenshot attached)

May be the problem is in if_exists=‘append’? In case if table exists in DB it adds data to it. Try if if_exists=‘replace’ will solve the issue.