finish csv to db script