rest file upload works to database for 1000 record