added file upload, changed db table device id to char50