create or replace procedure import_budget_from_csv()
language plpgsql
as $procedure$
begin 

truncate table public.budgetimport;

copy 
	public.budgetimport(dt, amount, description) 
from 
	'/usr/share/budget.csv' 
delimiter ',' 
csv 
header;
commit;
end;
$procedure$;
GRANT EXECUTE ON PROCEDURE public.update_budget_from_import() TO acedanger;
