Uppload error resolved, files uploaded ok now, problems with inserting into db