file upload to server(changing it to upload to database)