multiple patient uploading is now done with a single query so the server does not crash